﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace AzureDemoSil
{
    public partial class MainPage : UserControl
    {
        public MainPage()
        {
            InitializeComponent();
        }
        private void btnOK_Click(object sender, RoutedEventArgs e)
        {
            if (tbName.Text.Trim() == "")
            {
                lbResult.Content = "(Nhập tên vào đi đã!)";
            }
            else
            {
                if ((tbName.Text.ToUpper() == "THÙY DƯƠNG") || (tbName.Text.ToUpper() == "THUY DUONG"))
                {
                    lbResult.Content = "Tên đẹp! ♥♥♥";
                }
                else
                {
                    lbResult.Content = "Tên xấu! >\"<";
                }
            }
        }

        private void me_MediaEnded(object sender, RoutedEventArgs e)
        {
            me.Stop();
            me.Play();
        }

        private void me_MediaOpened(object sender, RoutedEventArgs e)
        {
            me.Play();
        }
    }
}
